<template>
  <div class="container">
    <div id="welcome">
      <div class="title">Welcome to JPetStore</div>
      <div class="subTitle">Come and choose your best company.</div>
      <div class="button" onclick="window.open('https:\\/\\/www.bilibili.com')">DISCOVER</div>
      <div class="details">
          <div class="detailItem">
              <div class="itemIcon" id="iconOne"></div><!--空白
              --><div class="title">Various Kinds</div><!--空白
              --><div class="explain">Jpetstore provides a variety of pets to meet the different needs of users, such as cat, dog, etc</div>
          </div><!--空白注释
        --><div class="detailItem">
              <div class="itemIcon" id="iconTwo"></div><!--空白
              --><div class="title">Best Company</div><!--空白
              --><div class="explain">Accompany is the longest confession, guard is the most silent accompany</div>
          </div><!--空白注释
        --><div class="detailItem">
              <div class="itemIcon" id="iconThree"></div><!--空白
              --><div class="title">Fast Delivery</div><!--空白
              --><div class="explain"> The company has more than 3500 independent outlets and branches, more than 25000 service outlets and stores, more than 300000 employees</div>
          </div>
      </div>
    </div>

    <div id="Main">
      <div id="separator">CATEGORIES</div>
      <div class="group">
          <nuxt-link class="categoryContent medium" id="fishCategory" to="/viewCategory/FISH">
              <div class="backgroundProcess wide"></div><!--空白
              --><div class="categoryText wide">
                  <div class="title">FISH</div><!--空白
                  --><div class="explain">Saltwater, Freshwater</div><!--空白
                  --><div class="description">There are many kinds of fish,such as,Goldfish,the beautiful fish,many people like to feed them.Tropical fish,they live in the sea.Whale,They are the largest animal in the world.</div>
              </div>
          </nuxt-link>
          <nuxt-link class="categoryContent small" id="dogCategory" to="/viewCategory/DOGS">
              <div class="backgroundProcess thin"></div><!--空白
              --><div class="categoryText thin">
                  <div class="title">DOG</div><!--空白
                  --><div class="explain">Various Breeds</div><!--空白
                  --><div class="description">Puppy vigilance is unusual, it has a special sensitive nose. It also has a pair of ears, whenever hear the sound of the special, its ears will stand up and listened attentively outside action.</div>
              </div>
          </nuxt-link>
      </div>

      <div class="group">
          <nuxt-link class="categoryContent small" id="catCategory" to="/viewCategory/CATS">
              <div class="backgroundProcess thin"></div><!--空白
              --><div class="categoryText thin">
                  <div class="title">CAT</div><!--空白
                  --><div class="explain">Various Breeds, Exotic Varieties</div><!--空白
                  --><div class="description">There are many kinds of fish,such as,Goldfish,the beautiful fish,many people like to feed them.Tropical fish,they live in the sea.Whale,They are the largest animal in the world.</div>
              </div>
          </nuxt-link>
          <nuxt-link class="categoryContent medium" id="reptileCategory" to="/viewCategory/REPTILES">
              <div class="backgroundProcess wide"></div><!--空白
              --><div class="categoryText wide">
                  <div class="title">REPTILE</div><!--空白
                  --><div class="explain">Lizards, Turtles, Snakes</div><!--空白
                  --><div class="description">There are many kinds of fish,such as,Goldfish,the beautiful fish,many people like to feed them.Tropical fish,they live in the sea.Whale,They are the largest animal in the world.</div>
              </div>
          </nuxt-link>
      </div>

      <div class="group">
          <nuxt-link class="categoryContent" id="birdCategory" to="/viewCategory/BIRDS">
              <div class="backgroundProcess wide"></div><!--空白
              --><div class="categoryText wide">
                  <div class="title">BIRD</div><!--空白
                  --><div class="explain">Exotic Varieties</div><!--空白
                  --><div class="description">There are many kinds of fish,such as,Goldfish,the beautiful fish,many people like to feed them.Tropical fish,they live in the sea.Whale,They are the largest animal in the world.</div>
              </div>
          </nuxt-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
    mounted() {
        
    }
}
</script>

<style>
.container {
  margin: 0 auto;
  float: left;
  min-height: calc(100vh - 180px);
  overflow-x: hidden;
}

#welcome
{
    float: left;
    width: 100%;
    height: 450px;
    background-color: #507e64;
}

@keyframes showContent
{
    0%
    {
        opacity: 0;
        transform: translateY(-10px);
    }
    100%
    {
        opacity: 1;
        transform: translateY(0px);
    }
}

#welcome>.title
{
    animation: showContent 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    color: #efe7db;
    float: left;
    position: relative;
    top: 20%;
    left: 5%;
    font-size: 3em;
}

#welcome>.subTitle
{
    animation: showContent 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    color: #efe7db;
    float: left;
    position: relative;
    clear: left;
    font-size: 1.1em;
    font-weight: lighter;
    top: 25%;
    left: 5%;
}

#welcome>.button
{
    animation: showContent 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition: background-color 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    color: #efe7db;
    letter-spacing: 1px;
    font-size: 1em;
    cursor: pointer;
    float: left;
    clear: left;
    width: 100px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border: 3px solid #efe7db;
    border-radius: 8px;
    position: relative;
    top: 45%;
    left: 5%;
}

#welcome>.button:hover
{
    background-color: #efe7db;
    color: #507e64;
}

#welcome>.details
{
    width: 920px;
    height: 302px;
    position: absolute;
    z-index: 1;
    background-color: #ecd6ac;
    border-radius: 10px;
    box-shadow: 3px 3px 10px #507e64;
    overflow: hidden;
    color: #364462;
    top: 347px;
    right: 100px;
    padding: 0;
}

.details>.detailItem
{
    animation: showContent 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    float: left;
    width: 29.9%;
    height: 100%;
    margin: auto 1.6%;
}

.detailItem>.itemIcon
{
    margin: 20px auto;
    width: 45px;
    height: 45px;
    background-size: cover;
}

#iconOne
{
    background-image: url('/images/mall.png');
}

#iconTwo
{
    background-image: url('/images/my.png');
}

#iconThree
{
    background-image: url('/images/time.png');
}

.detailItem>.title
{
    color: #364462;
    text-align: center;
    width: 100%;
    height: 20px;
    line-height: 20px;
    margin-top: 20px;
    font-size: 1.3em;
}

.detailItem>.explain
{
    text-indent: 1em;
    width: 80%;
    height: 55%;
    overflow: hidden;
    margin: 20px auto;
    font-weight: normal;
    font-size: 1em;
    line-height: 30px;
}

#Main
{
    background-color: #efefef;
    float: left;
    width: 100%;
}

#Main>#separator
{
    border: none;
    border-bottom: 3px solid #364462;
    text-align: center;
    overflow: hidden;
    width: 20%;
    margin: 200px auto 0 auto;
    font-size: 2em;
    color: #364462;
}

.backgroundProcess
{
    position: absolute;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: brightness(35%);
    transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.backgroundProcess.wide
{
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
}

.backgroundProcess.thin
{
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
}

.categoryContent {
  display: block;
}

.categoryContent:hover .backgroundProcess.thin
{
    height: 100%;
}

.categoryContent:hover .backgroundProcess.wide
{
    width: 100%;
}

.categoryContent
{
    float: left;
    cursor: pointer;
    border: none;
    overflow: hidden;
    border-radius: 2px;
    height: 400px;
    margin: 30px 35px;
    box-shadow: 1px 1px 20px #608e74;
    position: relative;
    left: -50%;
    transition: all 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.categoryContent.medium
{
    width: 674px;
}

.categoryContent.small
{
    width: 326px;
}

.group
{
    clear: left;
    float: left;
    position: relative;
    left: 50%;
}

#birdCategory
{
    width: 1070px;
    margin-bottom: 60px;
}

.categoryText
{
    position: absolute;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.categoryText.wide
{
    left: 40px;
    top: 0;
    height: 100%;
    width: 50%;
}

.categoryText.thin
{
    left: 40px;
    bottom: 0;
    height: 50%;
    width: 80%;
}

.categoryContent .description
{
    float: left;
    clear: left;
    color: #efe7db;
    width: 90%;
    font-weight: lighter;
    margin-top: 20px;
    word-break: break-word;
    word-spacing: 2px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.categoryContent:hover .description
{
    opacity: 1;
}

.categoryContent:hover .categoryText.wide
{
    left: 15%;
}

.categoryContent:hover .categoryText.thin
{
    bottom: 10%;
    height: 90%;
}

.categoryContent .title
{
    margin-top: 50px;
    float: left;
    color: #efe7db;
    font-size: 2.3em;
    font-weight: lighter;
    letter-spacing: 1px;
}

.categoryContent .explain
{
    margin-top: 10px;
    float: left;
    clear: left;
    font-size: 1.2em;
    color: #efe7db;
    font-weight: lighter;
}

.categoryContent:hover
{
    transform: scale(1.04);
}

#fishCategory
{
    background-image: url("/images/fish.png");
    background-size: cover;
}

#reptileCategory
{
    background-image: url("/images/reptile.png");
    background-size: cover;
}

#dogCategory
{
    background-image: url("/images/dog.png");
    background-size: cover;
}

#catCategory
{
    background-image: url("/images/cat.png");
    background-size: cover;
}

#birdCategory
{
    background-image: url("/images/bird.png");
    background-size: cover;
}
</style>
